package com.cruise.h5.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
/**
 * <p>
 *
 * </p>
 *
 * @author cruise
 * @since 2021-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("b_video_collection")
public class VideoCollection implements Serializable {
    private static final long serialVersionUID = 1L;

    public VideoCollection() {
    }

    /**
     * 添加收藏的构造
     * @param userId
     * @param videoId
     */
    public VideoCollection(String userId, String videoId) {
        this.userId = userId;
        this.videoId = videoId;
    }

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 视频 id
     */
    @TableField("video_id")
    private String videoId;
    /**
     * 创建日期
     */
    @TableField("create_date")
    private Date createDate = new Date();
}

